import requests as requests


def getHtml(url):
    header={
        "user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"
    }
    res=requests.get(url,headers=header)
    print(res.status_code)

    res.encoding=res.apparent_encoding
    print(res.text)

if __name__=='__main__':
    page_url="https://www.shanghairanking.cn/rankings/bcur/2021"
    getHtml(page_url)


